<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<%
call CheckRights(3,3)
if saferequest("mm_add",0)="true" then 
	freight_name=saferequest("freight_name",0)
	set cmd=Server.CreateObject("ADODB.Command")
	cmd.ActiveConnection = conn
	sql="insert into freight(freight_name) values('"&freight_name&"')"
	'response.write(sql)

	cmd.CommandText = sql
	cmd.Execute
	cmd.ActiveConnection.Close
	view_url="manage_freight.asp"
	response.Redirect(view_url)

end if
%>
<div class="navbar">
	<a href="manage_freight.asp">托运人信息管理</a>&gt;&gt;<a href="add_freight.asp">添加托运人</a>&gt;&gt;
</div>

<form name="form1" method="post" action="#">
	<div>
		<label>托运人</label>
		<input name="freight_name" type="text" />
	</div>
	<div>
		<input type="submit" name="Submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="reset" name="Reset" value="重置" />
		<input type="hidden" name="mm_add" value="true" />
	</div>
</form>
</body>
</html>

